package overall.dialog
{
	import overall.manager.LayerManager;

	public class DialogManager
	{
		public function DialogManager()
		{
		}
		static private var _instance:DialogManager;
		static public function get instance():DialogManager{
			_instance=_instance||new DialogManager;
			return _instance;
		}
		
		private var _view:DialogView
		public function show(str:String):void{
			if(!_view)_view=new DialogView;
			_view.text=str;
			LayerManager.instance.frameLayer.addChild(_view);
		}
		public function hide():void{
			LayerManager.instance.frameLayer.removeChild(_view);
		}
	}
}